import type { RouteRecordRaw } from 'vue-router';

import { IFrameView } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:file-symlink',
      order: -1,
      title: '文件传输',
    },
    name: 'file-transfer',
    path: '/file-transfer',
    component: IFrameView,
    children: [
      {
        name: 'Filedashboard',
        path: '/file-transfer/filedashboard',
        component: IFrameView,
        meta: {
          title: '文件传输助手',
          icon: 'lucide:layout-dashboard',
          link: '/file',
        },
      },
      {
        name: 'Public-Upload',
        path: '/file-transfer/fileupload',
        component: IFrameView,
        meta: {
          title: '文件上传',
          icon: 'lucide:upload',
          link: `/upload`,
        },
      },
      {
        name: 'Public-Download',
        path: '/file-transfer/filedownload',
        component: IFrameView,
        meta: {
          title: '文件下载',
          icon: 'lucide:download',
          link: `/download`,
        },
      },
      {
        name: 'Share-Manage',
        path: '/file-transfer/fileshare',
        component: IFrameView,
        meta: {
          title: '获取历史',
          icon: 'lucide:settings',
          link: `/share`,
        },
      },
    ],
  },
];

export default routes;
